<?php

namespace Home\Controller;
use Think\Controller;

header('content-type:text/html;charset=utf-8');

class ApiController extends Controller{
	
	public function getPk10(){
		$url="http://api.abclily.com/Home/Index/getPk10?t=".time();
		$data = curlGet($url);
		echo $data;
	}
	
	public function getXyft(){

		$beginToday = $endToday = strtotime("01:00:00")+86400;
		$endToday=strtotime('23:59:00');
		$data = [
			'beginToday' => $beginToday,
			'endToday' => $beginToday,
			'endToday' => $endToday,
		];
		echo $data;
		// print_r(date('Y-m-d H:i:s',$beginToday));die();

/*		$url="http://api.abclily.com/Home/Index/getXyft?t=".time();
		$data = curlGet($url);
		echo $data;*/
	}
	
	public function test(){
		// $beginToday = $endToday = strtotime("01:00:00")+86400;
		// $endToday=strtotime('23:59:00');
/*		$data = [
			'beginToday' => $beginToday; 
			'endToday' => $beginToday;
			'endToday' => $endToday;
		];
		$this->ajaxReturn($data);*/
		//print_r(date('Y-m-d H:i:s',$beginToday));die();
	}
	
}



?>